// <copyright file="ChartLegend.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System.Web.UI;

namespace YUIAspNet
{
    /// <summary>
    /// Legend display direction.
    /// </summary>
    public enum DisplayDirection
    {
        /// <summary>
        /// Right
        /// </summary>
        Right,

        /// <summary>
        /// Left
        /// </summary>
        Left,

        /// <summary>
        /// Top
        /// </summary>
        Top,

        /// <summary>
        /// Bottom
        /// </summary>
        Bottom
    }

    /// <summary>
    /// Represents a chart legend
    /// </summary>
    public class ChartLegend
    {
        /// <summary>
        /// Gets or sets the display.
        /// </summary>
        /// <value>The display.</value>
        public DisplayDirection Display { get; set; }

        /// <summary>
        /// Gets or sets the padding.
        /// </summary>
        /// <value>The padding.</value>
        public int Padding { get; set; }

        /// <summary>
        /// Gets or sets the spacing.
        /// </summary>
        /// <value>The spacing.</value>
        public int Spacing { get; set; }

        /// <summary>
        /// Gets or sets the font.
        /// </summary>
        /// <value>The font.</value>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public ChartFont Font { get; set; }
    }
}
